package com.xlblog.blog.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

//@Data
//@EqualsAndHashCode(callSuper = false)
//@Accessors(chain = true)
//public class Tcount {
//    private static final long serialVersionUID = 1L;
//    private Integer blogCount;
//    private Integer viewCount;
//    private Long commentCount;
//    private Long messageCount;
//}


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TCount对象", description="")
//@TableName(value = "t_blog" ,resultMap = "MyBlogMap")
public class TCount implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class) //系统序列化时，保留相关精度
    @ApiModelProperty(value = "访问量")
    private Long count;

    @ApiModelProperty(value = "id")
    private Long id;

}

